<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>专业技术人员信息</title>
    <link href="../css/professional1.css" rel="stylesheet" type="text/css">
    <script src="../jQuery/jquery-3.3.1.js"></script>
    <script src="../layer/layer.js"></script>
    <script src="../js/jquery-2.1.1.min.js"></script>
    <script src="../js/jquery.form.min.js"></script>
    <script src="../js/main.js"></script>
    <script src="../js/del.js "></script>
    <link href="../css/professional.css" rel="stylesheet" type="text/css">
    <script src="../layer/layer.js"></script>
    <script>
         var id=URL;
        $.ajaxSetup({
            xhrFields: {
                withCredentials: isCrossDomain
            }
        });


        var str2="";
        $.get(mainurl+"root/getAllCollege",function (data) {

            var d=data.data;

            for(var i=0;i<d.length;i++){
                var d1=d[i];
                var cid=d1.cid;
                var str=d1.college;
                var college=str.substring(4);
                if (i==0){
                    str2='<option value="'+cid+'">'+str+'</option>';
                }else {
                    str2=str2+'<option value="'+cid+'">'+college+'</option>';
                }

            }
        });


        $(function () {
            var p=$.getUrlParam('pageno');
            $.get(mainurl+"admin/getAllSkilluser?pageno="+p,function (data) {
                var pageNum=data.data.pageNum;
                var pages=data.data.pages;
                var lastPage=data.data.lastPage;
                var size=data.data.size;
                var pageSize=data.data.pageSize;

                if(checkData(data)){
                    var dat = data.data.list;

                    for(var i=0; i<dat.length; i++) {

                        var d = dat[i];
                        var name= d.name;
                        var sex = d.sex;
                        var username=d.username;
                      //  alert("工号username:"+username);
                        var title=d.title;
                        var fields=d.fields;
                        var phone=d.phone;
                        var email=d.email;
                        var audit=d.audit;
                        var img=mainurl+d.img;

                        if(audit==0){
                            str="未审核"
                        }if (audit==1){
                            str="通过";
                        }if (audit==-1) {
                            str="不通过";
                        }

                       var str1="";
                        if(sex!=null&&username!=null){
                            str1="<div class=\"info\">\n" +
                            "            <div class=\"top\">\n" +
                            "                <div class=\"del\"><a onclick=\"delService("+username+","+pageNum+") \"> <img src=\"../img/close.png\" style=\"width: 16px;height: 16px\"></a></div>\n" +
                            "                <div style=\"min-width: 200px\">\n" +
                            "                    <img src='#' id='img' class=\"info_teach\">\n" +
                            "                    <p class=\"specific\">\n" +
                            "                        <label class=\"name\">"+name+"</label> <br/>\n" +
                            "                        <label class='name12'>工号:"+username+"</label><br/>" +
                            "<label class='name12'>性别:"+sex+"</label><br/>" +
                            "<label class='name12'>职称:"+title+"</label><br/>" +
                            "<label class='name12'>专业领域:"+fields+"</label><br/>" +
                            "<label class='name12'>联系电话:"+phone+"</label><br/>" +
                            "<label class='name12'>电子邮箱:"+email+"</label><br/>" +
                            "                </div>\n" +
                            "            </div>\n" +
                            "            <div class=\"info_operation\" style='float: left;margin-left: -200px;'>\n" +
                            "               <label  onclick=\"examine("+pageNum+","+username+")\"   class=\"operation\"  ><img src=\"../img/examine.png\" style=\"width: 20px;height: 18px\">审核:"+str+"</label>\n" +
                            "            </div>\n" +
                            "        </div>\n" +
                            "        ";}else{
                            //alert("工号username:"+username);
                            str1="<div class=\"info\">\n" +
                                "            <div class=\"top\">\n" +
                                "                <div class=\"del\"><a onclick=\"delService("+username+","+pageNum+") \"> <img src=\"../img/close.png\" style=\"width: 16px;height: 16px\"></a></div>\n" +
                                "                <div style=\"min-width: 200px\"><p class=\"specific\">\n" +
                                "                        <label class=\"name\">"+name+"</label> <br/>\n" +
                                "                        <label  class='name12'>工号:"+username+"</label><br/>" +
                                "<label  class='name12'>该技术人员相关信息未完善</label><br/></div>\n" +
                                "            </div>\n" +
                                "            <div class=\"info_operation\" style='float: right;'>\n" +
                                "               <label  onclick=\"tishi()\"   class=\"operation\"><img src=\"../img/examine.png\" style=\"width: 20px;height: 18px\">审核:"+str+"</label>\n" +
                                "            </div>\n" +
                                "        </div>\n" +
                                "        ";
                        }





                        if((i+1)==1||(i+1)==4){
                            $("#information_left").append(str1);

                        }if((i+1)==2||(i+1)==5){
                            $("#information_middle").append(str1);
                        }if((i+1)==3||(i+1)==6){
                            $("#information_right").append(str1);
                        }
                        $("#img").attr("src",img);
                    }
                    if (pageNum!=0){
                        xuhao(pageNum,pages);
                    }else {
                        errorInfo("未查询到相关结果")
                    }
                }
            });
        })



        //删除函数
        function delService(username,pageno) {
              //  alert("工号:"+username);
            layer.confirm('是否确认删除？', {
                btn: ['是的','取消'] //按钮
            }, function(){//y
                $.post(mainurl+"admin/deleteSkilluser",{username:username},function (data) {
                    if(checkData(data)) {
                        successInfo("删除成功");
                        window.location.href="Admin-Professional.html?pageno="+pageno;
                    }
                });
                layer.closeAll();
            }, function(){
            });
        }




        //序号跳转函数
        function tiaozhuan(pageno) {
            $.get(mainurl+"admin/getAllSkilluser?pageno="+pageno,function (data) {
                var pageNum=data.data.pageNum;
                var pages=data.data.pages;
                var lastPage=data.data.lastPage;
                var size=data.data.size;
                var pageSize=data.data.pageSize;
                if(checkData(data)){
                    $("#information_left").empty();
                    $("#information_middle").empty();
                    $("#information_right").empty();
                    var dat = data.data.list;
                    for(var i=0; i<dat.length; i++) {
                        var d = dat[i];
                        var name= d.name;
                        var sex = d.sex;
                        var username=d.username;
                        var title=d.title;
                        var fields=d.fields;
                        var phone=d.phone;
                        var email=d.email;
                        var audit=d.audit;
                        var img=mainurl+d.img;

                        if(audit==0){
                            str="未审核"
                        }if (audit==1){
                            str="通过";
                        }if (audit==-1) {
                            str="不通过";
                        }
                        var str1="";
                        if(sex!=null&&username!=null){
                            str1="<div class=\"info\">\n" +
                                "            <div class=\"top\">\n" +
                                "                <div class=\"del\"><a onclick=\"delService("+username+","+pageNum+") \"> <img src=\"../img/close.png\" style=\"width: 16px;height: 16px\"></a></div>\n" +
                                "                <div style=\"min-width: 200px\">\n" +
                                "                    <img src=\"\"+img class=\"info_teach\">\n" +
                                "                    <p class=\"specific\">\n" +
                                "                        <label class=\"name\">"+name+"</label> <br/>\n" +
                                "                        <label class='name12'>工号:"+username+"</label><br/>" +
                                "<label class='name12'>性别:"+sex+"</label><br/>" +
                                "<label class='name12'>职称:"+title+"</label><br/>" +
                                "<label class='name12'>专业领域:"+fields+"</label><br/>" +
                                "<label class='name12'>联系电话:"+phone+"</label><br/>" +
                                "<label class='name12'>电子邮箱:"+email+"</label><br/>" +
                                "                </div>\n" +
                                "            </div>\n" +
                                "            <div class=\"info_operation\" style='float: left;margin-left: -200px;'>\n" +
                                "               <label  onclick=\"examine("+pageNum+","+username+")\"   class=\"operation\"  ><img src=\"../img/examine.png\" style=\"width: 20px;height: 18px\">审核:"+str+"</label>\n" +
                                "            </div>\n" +
                                "        </div>\n" +
                                "        ";}else{
                            //alert("工号username:"+username);
                            str1="<div class=\"info\">\n" +
                                "            <div class=\"top\">\n" +
                                "                <div class=\"del\"><a onclick=\"delService("+username+","+pageNum+") \"> <img src=\"../img/close.png\" style=\"width: 16px;height: 16px\"></a></div>\n" +
                                "                <div style=\"min-width: 200px\"><p class=\"specific\">\n" +
                                "                        <label class=\"name\">"+name+"</label> <br/>\n" +
                                "                        <label  class='name12'>工号:"+username+"</label><br/>" +
                                "<label  class='name12'>该技术人员相关信息未完善</label><br/></div>\n" +
                                "            </div>\n" +
                                "            <div class=\"info_operation\" style='float: right;'>\n" +
                                "               <label  onclick=\"tishi()\"   class=\"operation\"><img src=\"../img/examine.png\" style=\"width: 20px;height: 18px\">审核:"+str+"</label>\n" +
                                "            </div>\n" +
                                "        </div>\n" +
                                "        ";
                        }


                        if((i+1)==1||(i+1)==4){
                            $("#information_left").append(str1);

                        }if((i+1)==2||(i+1)==5){
                            $("#information_middle").append(str1);
                        }if((i+1)==3||(i+1)==6){
                            $("#information_right").append(str1);
                        }
                    }
                    $("#xuhao").empty();
                    if (pageNum!=0){
                        xuhao(pageNum,pages);
                    }else {
                        errorInfo("未查询到相关结果")
                    }
                }
            });
        }

        function fleac() {

            window.location.href="Admin-Professional.html?pageno=1";
        }
    </script>

</head>
<body>
<p class="p1">所在位置：专业技术人员信息</p>
<div class="sousu">

    <label class="p2">姓名：</label><input type="search"  class="fullName" id="name"><button type="submit" id="searchName">搜索</button>
    <label class="p2">工号：</label><input type="search"  class="number" id="username1"><button type="submit" id="searchId">搜索</button>
    <label class="p2"> </label> <button type="submit" onclick="fleac()">查询全部</button>


</div>
<div class="append"><label id="append" onclick="confirmUpdateUser()"><img style="width: 15px;height: 15px" src="../img/add.png">添加人员信息</label></div>


<div class="container">

    <div class="information_left" id="information_left">
    </div>

    <div class="information_middle" id="information_middle">
    </div>

    <div class="information_right" id="information_right">
    </div>


</div>
<br/>

<div class="page" id="xuhao">
</div>




</body>

<script>
    var user = "";
    function confirmUpdateUser() {
        layer.open({
            type: 1,
            title:'添加个人信息',
            area: ['400px', '500px'],
            closeBtn:1,
            shadeClose: true, //点击遮罩关闭
            content:
            '<div style="padding:20px;">' +
            '<label class="re_name" >'+'姓名: '+'</label>'
            + '<input class="re_ipt" id="userName"  type="text"  />'
            + '<label class="re_name">'+'工号: '+'</label>'
            + '<input class="re_ipt" id="userNumber" type="text"  />'
            + '<label class="re_name">'+'所在部门: '+'</label>'
            +'<select class="re_ipt" id="userJob"  >'
            +'<option>'+''+'</option>'
            +str2
            +'</select>'
            +'<button id="sub" onclick=\'updateUser("+user[i].id+")\' >'+'提交'+'</button>'+
            '</div>'
        });
    };
    function updateUser(userId) {
        var code=10;
        var usName = $("#userName").val();
        var usNumber = $("#userNumber").val();
        var usJob = $("#userJob").val();
        $.ajax({
            type: "post",
            url : mainurl+ "admin/addSkilluser",
            dataType:'json',
            data:{
                "name":usName,
                "username":usNumber,
                "cid":usJob
            },
            success: function(data){
               // alert("123456");
                var updateSuccess = data.data;
                //alert(data.msg);
                code=data.code;
                if (data.code != 0){
                    layer.msg(data.msg, {
                        time: 3000, //20s后自动关闭
                    });
                    if(data.code==-1){
                        window.location.href=mainurl+'hbwlxy/admin/login.html';
                    }
                    return false;
                }else{
                    layer.msg('添加成功', {
                        time: 2000, //0.5s后自动关闭
                        // btn: ['明白了', '知道了']
                    });
                   // refreshPage();
                    window.location.href='Admin-Professional.html?pageno=1';
                }
            }




        });
        layer.closeAll();

    }

    function tishi() {
        layer.open({
            type: 1,
            title:'提示信息',
            area: ['400px', '200px'],
            closeBtn:1,
            shadeClose: true, //点击遮罩关闭
            content:'<label class="examine_state">'+'该人员信息未完善，禁止相关操作 '
                +'<button id="ex_sub">'+'确认'+'</button>'
        });
    }

    function examine(pageno,id) {
        layer.open({
            type: 1,
            title:'审核状态',
            area: ['400px', '200px'],
            closeBtn:1,
            shadeClose: true, //点击遮罩关闭
            content:'<label class="examine_state">'+'审核状态: '+'</label>'+'<select id="zhi" class="examine_sel">'
                +'<option value="0">未审核</option>'+'<option value="1">通过</option>'+'<option value="-1">未通过</option>'+'</select>'
                +'<button id="ex_sub" onclick="shenghe('+pageno+','+id+') ">'+'提交'+'</button>'
        });
    }

    function shenghe(a,b) {
        var zhi=document.getElementById("zhi").value;
        $.post(mainurl+"admin/skilluserToexamin",{username:b,audit:zhi},function (data) {
            if(checkData(data)) {
                successInfo("审核信息修改成功");
                window.location.href="Admin-Professional.html?pageno="+a;
            }
        });

    }
    function edit() {
        layer.open({
            type: 1,
            title:'修改页面',
            area: ['400px', '600px'],
            closeBtn:1,
            shadeClose: true, //点击遮罩关闭
            content:'<div style="padding: 20px">'+
            '<label class="ed_name">'+'姓名:'+'</label>'+'<input class="edit_ipt" type="text" id="edit_name">'
            +'<br/>'
            +'<label class="ed_name">'+'性别:'+'</label>'
            + '<input class="edit_radio" type="radio" value="0" name="gender">'+'男' +'<input class="edit_radio" type="radio" value="1" name="gender">'+'女'
            +'<br/>'
            +'<label class="ed_name">'+'年龄:'+'</label>'+'<input class="edit_ipt" type="text" id="edit_age">'
            +'<label class="ed_name">'+'所在部门:'+'</label>'+'<select class="edit_ipt" id="edit_job" >'
            +'<option>'+''+'</option>'
            +'<option>'+'学工处'+'</option>'
            +'<option>'+'财政处'+'</option>'
            +'<option>'+'科技处'+'</option>'
            +'</select>'
            +'<label class="ed_name">'+'学位:'+'</label>'+'<input class="edit_ipt" type="text" id="edit_degree">'
            +'<label class="ed_name">'+'专业领域:'+'</label>'+'<input class="edit_ipt" type="text" id="edit_area">'
            +'<label class="ed_name">'+'联系方式:'+'</label>'+'<input class="edit_ipt" type="text" id="edit_tel">'
            +'<label class="ed_name">'+'电子邮箱:'+'</label>'+'<input class="edit_ipt" type="text" id="edit_email">'
            +'<label class="ed_name">'+'照片:'+'</label>'+'<input class="edit_ipt" type="file" id="file" onchange="changepic(this)"accept="image/png, image/jpeg, image/gif, image/jpg">'
            +'<img src="" id="show">'+'<button id="sub" >'+'提交'+'</button>'
            +'</div>'
        });
    }
    function changepic() {
        var reads= new FileReader();
        f=document.getElementById('file').files[0];
        reads.readAsDataURL(f);
        reads.onload=function (e) {
            document.getElementById('show').src=this.result;
        };
    }
    function del() {
        var self = $(this);
        var flag = $(this).attr('flag');
        layer.confirm('是否确认删除？', {
            btn: ['确定','取消'] //按钮
        },function () {
            $.ajax({
                url: "",
                type: "post",
                data: {id: flag},
                dataType: "json",
                success: function (data) {
                    if(data == 1){
                        layer.msg('删除成功')
                        location.reload();
                    }
                    if (data == 0){
                        layer.msg('删除失败')
                        location.reload();
                    }
                }
            });
        });

    }

    $(function () {
        $('#searchName').click(function() {
            var text = $('#name').val(); //获取文本框输入
            var text1=text.replace(/^\s*|\s*$/g,"");
            if(text1==null||text1==""){
               errorInfo("姓名不能为空");
            }else{
                $.post(mainurl+"admin/getSkilluserInfo",{name:text1,pageno:1,},function (data) {
                    checkData(data);
                    $('#name').val("");
                    var pageNum=data.data.pageNum;
                    var pages=data.data.pages;
                    var lastPage=data.data.lastPage;
                    var size=data.data.size;
                    var pageSize=data.data.pageSize;
                    if(checkData(data)){
                        $("#information_left").empty();
                        $("#information_middle").empty();
                        $("#information_right").empty();
                        var dat = data.data.list;
                        for(var i=0; i<dat.length; i++) {
                            var d = dat[i];
                            var name= d.name;
                            var sex = d.sex;
                            var username=d.username;
                            var title=d.title;
                            var fields=d.fields;
                            var phone=d.phone;
                            var email=d.email;
                            var audit=d.audit;
                            var img=mainurl+d.img;

                            if(audit==0){
                                str="未审核"
                            }if (audit==1){
                                str="通过";
                            }if (audit==-1) {
                                str="不通过";
                            }
                            var str1="";
                            if(sex!=null&&username!=null){
                                str1="<div class=\"info\">\n" +
                                    "            <div class=\"top\">\n" +
                                    "                <div class=\"del\"><a onclick=\"delService("+username+","+pageNum+") \"> <img src=\"../img/close.png\" style=\"width: 16px;height: 16px\"></a></div>\n" +
                                    "                <div style=\"min-width: 200px\">\n" +
                                    "                    <img src=\"\"+img class=\"info_teach\">\n" +
                                    "                    <p class=\"specific\">\n" +
                                    "                        <label class=\"name\">"+name+"</label> <br/>\n" +
                                    "                        <label class='name12'>工号:"+username+"</label><br/>" +
                                    "<label class='name12'>性别:"+sex+"</label><br/>" +
                                    "<label class='name12'>职称:"+title+"</label><br/>" +
                                    "<label class='name12'>专业领域:"+fields+"</label><br/>" +
                                    "<label class='name12'>联系电话:"+phone+"</label><br/>" +
                                    "<label class='name12'>电子邮箱:"+email+"</label><br/>" +
                                    "                </div>\n" +
                                    "            </div>\n" +
                                    "            <div class=\"info_operation\" style='float: left;margin-left: -200px;'>\n" +
                                    "               <label  onclick=\"examine("+pageNum+","+username+")\"   class=\"operation\"  ><img src=\"../img/examine.png\" style=\"width: 20px;height: 18px\">审核:"+str+"</label>\n" +
                                    "            </div>\n" +
                                    "        </div>\n" +
                                    "        ";}else{
                                //alert("工号username:"+username);
                                str1="<div class=\"info\">\n" +
                                    "            <div class=\"top\">\n" +
                                    "                <div class=\"del\"><a onclick=\"delService("+username+","+pageNum+") \"> <img src=\"../img/close.png\" style=\"width: 16px;height: 16px\"></a></div>\n" +
                                    "                <div style=\"min-width: 200px\"><p class=\"specific\">\n" +
                                    "                        <label class=\"name\">"+name+"</label> <br/>\n" +
                                    "                        <label  class='name12'>工号:"+username+"</label><br/>" +
                                    "<label  class='name12'>该技术人员相关信息未完善</label><br/></div>\n" +
                                    "            </div>\n" +
                                    "            <div class=\"info_operation\" style='float: right;'>\n" +
                                    "               <label  onclick=\"tishi()\"   class=\"operation\"><img src=\"../img/examine.png\" style=\"width: 20px;height: 18px\">审核:"+str+"</label>\n" +
                                    "            </div>\n" +
                                    "        </div>\n" +
                                    "        ";
                            }


                            if((i+1)==1||(i+1)==4){
                                $("#information_left").append(str1);

                            }if((i+1)==2||(i+1)==5){
                                $("#information_middle").append(str1);
                            }if((i+1)==3||(i+1)==6){
                                $("#information_right").append(str1);
                            }
                        }
                        $("#xuhao").empty();
                        if (pageNum!=0){
                            xuhao(pageNum,pages);
                        }else {
                            errorInfo("未查询到相关结果")
                        }
                    }
                });
            }

        })

        $("#searchId").click(function () {
            var userName = $('#username1').val();
            var userName1=userName.replace(/^\s*|\s*$/g,"");
            if(userName1==null||userName1==""){
                errorInfo("工号不能为空");
            }else {
                $.post(mainurl+"admin/getSkilluserInfo",{username:userName1,pageno:1},function (data) {
                    checkData(data);
                    $('#username1').val("");
                    var pageNum=data.data.pageNum;
                    var pages=data.data.pages;
                    var lastPage=data.data.lastPage;
                    var size=data.data.size;
                    var pageSize=data.data.pageSize;
                    if(checkData(data)){
                        $("#information_left").empty();
                        $("#information_middle").empty();
                        $("#information_right").empty();
                        var dat = data.data.list;
                        for(var i=0; i<dat.length; i++) {
                            var d = dat[i];
                            var name= d.name;
                            var sex = d.sex;
                            var username=d.username;
                            var title=d.title;
                            var fields=d.fields;
                            var phone=d.phone;
                            var email=d.email;
                            var audit=d.audit;
                            var img=d.img;

                            if(audit==0){
                                str="未审核"
                            }if (audit==1){
                                str="通过";
                            }if (audit==-1) {
                                str="不通过";
                            }
                            var str1="";
                            if(sex!=null&&username!=null){
                                str1="<div class=\"info\">\n" +
                                    "            <div class=\"top\">\n" +
                                    "                <div class=\"del\"><a onclick=\"delService("+username+","+pageNum+") \"> <img src=\"../img/close.png\" style=\"width: 16px;height: 16px\"></a></div>\n" +
                                    "                <div style=\"min-width: 200px\">\n" +
                                    "                    <img src=\"\"+img class=\"info_teach\">\n" +
                                    "                    <p class=\"specific\">\n" +
                                    "                        <label class=\"name\">"+name+"</label> <br/>\n" +
                                    "                        <label class='name12'>工号:"+username+"</label><br/>" +
                                    "<label class='name12'>性别:"+sex+"</label><br/>" +
                                    "<label class='name12'>职称:"+title+"</label><br/>" +
                                    "<label class='name12'>专业领域:"+fields+"</label><br/>" +
                                    "<label class='name12'>联系电话:"+phone+"</label><br/>" +
                                    "<label class='name12'>电子邮箱:"+email+"</label><br/>" +
                                    "                </div>\n" +
                                    "            </div>\n" +
                                    "            <div class=\"info_operation\" style='float: left;margin-left: -200px;'>\n" +
                                    "               <label  onclick=\"examine("+pageNum+","+username+")\"   class=\"operation\"  ><img src=\"../img/examine.png\" style=\"width: 20px;height: 18px\">审核:"+str+"</label>\n" +
                                    "            </div>\n" +
                                    "        </div>\n" +
                                    "        ";}else{
                                //alert("工号username:"+username);
                                str1="<div class=\"info\">\n" +
                                    "            <div class=\"top\">\n" +
                                    "                <div class=\"del\"><a onclick=\"delService("+username+","+pageNum+") \"> <img src=\"../img/close.png\" style=\"width: 16px;height: 16px\"></a></div>\n" +
                                    "                <div style=\"min-width: 200px\"><p class=\"specific\">\n" +
                                    "                        <label class=\"name\">"+name+"</label> <br/>\n" +
                                    "                        <label  class='name12'>工号:"+username+"</label><br/>" +
                                    "<label  class='name12'>该技术人员相关信息未完善</label><br/></div>\n" +
                                    "            </div>\n" +
                                    "            <div class=\"info_operation\" style='float: right;'>\n" +
                                    "               <label  onclick=\"tishi()\"   class=\"operation\"><img src=\"../img/examine.png\" style=\"width: 20px;height: 18px\">审核:"+str+"</label>\n" +
                                    "            </div>\n" +
                                    "        </div>\n" +
                                    "        ";
                            }


                            if((i+1)==1||(i+1)==4){
                                $("#information_left").append(str1);

                            }if((i+1)==2||(i+1)==5){
                                $("#information_middle").append(str1);
                            }if((i+1)==3||(i+1)==6){
                                $("#information_right").append(str1);
                            }
                        }
                        $("#xuhao").empty();
                        xuhao(pageNum,pages);
                    }
                });




            }

        })
    })






    //    function updateUser(userId) {
    //        var userName = $('userName').val();
    //        var userNumber = $('userNumber').val();
    //        var userJob = $('userJob').val();
    //        $.ajax({
    //            type: "post",
    //            url : getContextPath() + "/award/updateUser",
    //            dataType:'json',
    //            data: {
    ////                "userId":userId,
    //                "userName":userName,
    //                "userNumber":userNumber,
    //                "userJob":userJob
    //            },
    //            success: function(data){
    //                var updateSuccess = data.data;
    //                if(updateSuccess){
    //                    layer.msg('修改成功', {
    //                        time: 500, //0.5s后自动关闭
    //                        // btn: ['明白了', '知道了']
    //                    });
    //                    refreshPage();
    //                }else{
    //                    layer.msg('修改失败', {
    //                        time: 500, //20s后自动关闭
    //                        // btn: ['明白了', '知道了']
    //                    });
    //                }
    //            }
    //        });
    //        layer.closeAll();
    //    }















    //    //添加人员信息
    //    var shade = document.getElementById("shade");
    //    var append = document.getElementById("append");
    //    var remove = document.getElementById("remove");
    //    var shut = document.getElementById("shut");
    //    //审核
    //    var ex_shade = document.getElementById("ex_shade");
    //    var exam = document.getElementById("examine");
    //    var can = document.getElementById("cancel");
    //    var close = document.getElementById("close");
    //
    //
    //
    //    append.onclick = function(){
    //        shade.style.display = "block"
    //    }
    //    remove.onclick = function(){
    //        shade.style.display = "none"
    //    }
    //    shut.onclick = function(){
    //        shade.style.display = "none"
    //    }
    //    exam.onclick = function(){
    //        ex_shade.style.display = "block"
    //    }
    //    can.onclick = function(){
    //        ex_shade.style.display = "none"
    //    }
    //    close.onclick = function(){
    //        ex_shade.style.display = "none"
    //    }
</script>
</html>